From: Lars Magne Ingebrigtsen Date: Wed, 24 Nov 2010 00:35:23 +0000 (+0000) Subject: shr.el (shr-tag-font): Resurrect shr-tag-font again, since it's needed to parse ... X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5551 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d036f2cad5ac1ceb92a586e635042bf8c66dfcf8;p=emacs.git shr.el (shr-tag-font): Resurrect shr-tag-font again, since it's needed to parse entries. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6815acb4329..ce5f4d616fa 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -2,6 +2,8 @@ * shr.el (shr-insert-color-overlay): Split stuff like "#444444 !important" to find the real colour. + (shr-tag-font): Resurrect shr-tag-font again, since it's needed to + parse entries. 2010-11-23 Andrew Cohen diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index 8398e8a6114..b195f6bf8a5 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -702,6 +702,12 @@ START, and END." (shr-ensure-newline) (insert (make-string shr-width shr-hr-line) "\n")) +(defun shr-tag-font (cont) + (let ((start (point)) + (color (cdr (assq :color cont)))) + (shr-generic cont) + (shr-insert-color-overlay color start (point)))) + ;;; Table rendering algorithm. ;; Table rendering is the only complicated thing here. We do this by